﻿using JY.Wpf.Core.ViewModelBases;
using JY.Wpf.TestForMetro.Views.MVVMDemoViews;
using SD.IOC.Core.Mediators;

namespace JY.Wpf.TestForMetro.ViewModels.MVVMDemoViewModels
{
    public class MessageViewModel : ViewModelBase
    {
        #region # 变量

        #endregion

        #region # 构造器
        /// <summary>
        /// 构造器
        /// </summary>
        public MessageViewModel()
        {
        }
        #endregion

        #region # 属性

        #endregion

        #region # Command方法
        #region # 信息消息——void Info()
        /// <summary>
        /// 信息消息
        /// </summary>
        public void Info()
        {
            //Growl.Info("信息消息");
        }
        #endregion
        #region # 成功消息——void Success()
        /// <summary>
        /// 成功消息
        /// </summary>
        public void Success()
        {
            //Growl.Success("成功消息");
        }
        #endregion

        #region # 警告消息——void Warning()
        /// <summary>
        /// 警告消息
        /// </summary>
        public void Warning()
        {
            //Growl.Warning("警告消息");
        }
        #endregion

        #region # 异常消息——void Error()
        /// <summary>
        /// 异常消息
        /// </summary>
        public void Error()
        {
            //Growl.Error("异常消息");
        }
        #endregion

        #region # 询问消息——void Ask()
        /// <summary>
        /// 询问消息
        /// </summary>
        public void Ask()
        {
            //Growl.Ask("询问消息", (f1) =>
            //{
            //    return true;
            //});
        }
        #endregion
        #region # 严重消息——void Fatal()
        /// <summary>
        /// 严重消息
        /// </summary>
        public void Fatal()
        {
            //Growl.Fatal("严重消息");
        }
        #endregion

        #region # 清除消息——void Clear()
        /// <summary>
        /// 清除消息
        /// </summary>
        public void Clear()
        {
            //Growl.Clear();
        }
        #endregion

        #region # 信息消息——void InfoDesktop()
        /// <summary>
        /// 信息消息
        /// </summary>
        public void InfoDesktop()
        {
            //Growl.InfoGlobal("信息消息");
        }
        #endregion
        #region # 成功消息——void SuccessDesktop()
        /// <summary>
        /// 成功消息
        /// </summary>
        public void SuccessDesktop()
        {
            //Growl.SuccessGlobal("成功消息");
        }
        #endregion

        #region # 警告消息——void WarningDesktop()
        /// <summary>
        /// 警告消息
        /// </summary>
        public void WarningDesktop()
        {
            //Growl.WarningGlobal("警告消息");
        }
        #endregion

        #region # 异常消息——void ErrorDesktop()
        /// <summary>
        /// 异常消息
        /// </summary>
        public void ErrorDesktop()
        {
            //Growl.ErrorGlobal("异常消息");
        }
        #endregion

        #region # 询问消息——void AskDesktop()
        /// <summary>
        /// 询问消息
        /// </summary>
        public void AskDesktop()
        {
            //Growl.AskGlobal("询问消息", (f1) =>
            //{
            //    return true;
            //});
        }
        #endregion
        #region # 严重消息——void FatalDesktop()
        /// <summary>
        /// 严重消息
        /// </summary>
        public void FatalDesktop()
        {
            //Growl.FatalGlobal("严重消息");
        }
        #endregion

        #region # 清除消息——void ClearDesktop()
        /// <summary>
        /// 清除消息
        /// </summary>
        public void ClearDesktop()
        {
            //Growl.ClearGlobal();
        }
        #endregion
        #endregion

        #region # 方法

        #endregion

        #region # 获取页面 —— object GetView(object context = null)
        /// <summary>
        /// 获取页面
        /// </summary>
        /// <param name="context">页面</param>
        /// <returns></returns>
        public override object GetView(object context = null)
        {
            return ResolveMediator.Resolve<MessageView>();
        }
        #endregion
    }
}
